#coding=utf-8
#Boa:Dialog:DlgAbout

import wx

def create(parent):
    return DlgAbout(parent)

[wxID_DLGABOUT, wxID_DLGABOUTBTNOK, wxID_DLGABOUTSTATICTEXT1, 
 wxID_DLGABOUTSTATICTEXT2, wxID_DLGABOUTSTATICTEXT3, wxID_DLGABOUTSTATICTEXT4, 
 wxID_DLGABOUTTC, wxID_DLGABOUTTEXTCTRL1, wxID_DLGABOUTTEXTCTRL2, 
 wxID_DLGABOUTTVERSION, 
] = [wx.NewId() for _init_ctrls in range(10)]

class DlgAbout(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DLGABOUT, name=u'DlgAbout',
              parent=prnt, pos=wx.Point(613, 222), size=wx.Size(400, 402),
              style=wx.DEFAULT_DIALOG_STYLE, title=u'\u5173\u4e8e\u8f6f\u4ef6')
        self.SetClientSize(wx.Size(392, 368))
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              u'\u6977\u4f53_GB2312'))
        self.Center(wx.BOTH)

        self.staticText1 = wx.StaticText(id=wxID_DLGABOUTSTATICTEXT1,
              label=u'\u5c0f\u5fae\u4f01\u4e1a\u5de5\u4f5c\u95f4',
              name='staticText1', parent=self, pos=wx.Point(48, 40),
              size=wx.Size(119, 16), style=0)

        self.staticText2 = wx.StaticText(id=wxID_DLGABOUTSTATICTEXT2,
              label=u'\u5f00\u53d1\u8005\uff1a', name='staticText2',
              parent=self, pos=wx.Point(48, 72), size=wx.Size(68, 16), style=0)

        self.staticText3 = wx.StaticText(id=wxID_DLGABOUTSTATICTEXT3,
              label=u'\u8f6f\u4ef6\u6743\u76ca\u58f0\u660e\uff1a',
              name='staticText3', parent=self, pos=wx.Point(48, 152),
              size=wx.Size(119, 16), style=0)

        self.tc = wx.TextCtrl(id=wxID_DLGABOUTTC, name=u'tc', parent=self,
              pos=wx.Point(48, 176), size=wx.Size(320, 88),
              style=wx.RAISED_BORDER | wx.TE_MULTILINE | wx.TE_READONLY,
              value=u'\u672c\u8f6f\u4ef6\u7531\u5415\u6587\u5149\u5f00\u53d1\u5e76\u6301\u7eed\u7ef4\u62a4\uff0c\u672c\u8f6f\u4ef6\u7684\u4e00\u5207\u6743\u76ca\u5f52\u5415\u6587\u5149\u6240\u6709\uff0c\u672c\u8f6f\u4ef6\u5fc5\u987b\u53d6\u5f97\u5415\u6587\u5149\u6388\u6743\u65b9\u53ef\u5b89\u88c5\u4f7f\u7528\u3002')

        self.btnOK = wx.Button(id=wxID_DLGABOUTBTNOK, label=u'\u786e\u5b9a',
              name=u'btnOK', parent=self, pos=wx.Point(144, 296),
              size=wx.Size(93, 26), style=0)
        self.btnOK.Bind(wx.EVT_BUTTON, self.OnBtnOKButton,
              id=wxID_DLGABOUTBTNOK)

        self.textCtrl1 = wx.TextCtrl(id=wxID_DLGABOUTTEXTCTRL1,
              name='textCtrl1', parent=self, pos=wx.Point(120, 64),
              size=wx.Size(64, 26), style=wx.RAISED_BORDER | wx.TE_READONLY,
              value=u'\u5415\u6587\u5149 ')

        self.staticText4 = wx.StaticText(id=wxID_DLGABOUTSTATICTEXT4,
              label=u'\u53cd\u9988\u8054\u7cfb\uff1a', name='staticText4',
              parent=self, pos=wx.Point(48, 112), size=wx.Size(85, 16),
              style=0)

        self.textCtrl2 = wx.TextCtrl(id=wxID_DLGABOUTTEXTCTRL2,
              name='textCtrl2', parent=self, pos=wx.Point(136, 104),
              size=wx.Size(160, 26), style=wx.RAISED_BORDER | wx.TE_READONLY,
              value=u'QQ\uff1a421655866')

        self.tVersion = wx.StaticText(id=wxID_DLGABOUTTVERSION,
              label='staticText5', name=u'tVersion', parent=self,
              pos=wx.Point(176, 40), size=wx.Size(99, 16), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)
        
        self.tVersion.SetLabel('V2.0.150315')

    def OnBtnOKButton(self, event):
        self.EndModal(wx.ID_OK)
